package com.syp.uuid.test.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.syp.uuid.core.service.SerialServiceI;

public class testuuidservice {

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:spring-core.xml");
		SerialServiceI ss = ac.getBean(SerialServiceI.class);
		// List<Long> uuids = uuidService.nextValues("TEST_SEQ", 10L);
		// System.err.println(uuids);
		// boolean success = ss.put("appseq.TEST_SEQ", 10000);
		// System.err.println(success);
		for (int i = 0; i < 100; i++) {
			long l = ss.get("appseq.TEST_SEQ");
			System.err.println(l);
		}

	}

}
